<table class="am-table am-table-bordered am-table-centered">
  
  <!--{foreach ( $view_fields as $key=>$val )}-->
          <!--{if ($val['type'] == 'select')}-->
          <tr>
            <td><!--{$val['name']}--></td>
            <td><!--{$select_fields[$key][$model[$key]]}--></td>
          </tr>         
        <!--{elseif ($val['type'] == 'treelist')}--> 
          <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right"><!--{$val['name']}--></div>
            <div class="am-u-sm-8 am-u-md-10">
              <select data-am-selected="{btnSize: 'xs',maxHeight: 200,btnStyle: 'success'}" name="<!--{$key}-->">
                <!--{if($key != 'pro_cate')}-->
                <option value="0">根节点</option>
                <!--{/if}-->
                <!--{$treelist_fields[$key]}-->
              </select>
            </div>
          </div>
      <!--{elseif ($val['type'] == 'text')}-->
          <tr>
            <td><!--{$val['name']}--></td>
            <td><!--{$model[$key]}--></td>
          </tr>
           
      <!--{elseif ($val['type'] == 'password')}-->
       
      <!--{elseif ($val['type'] == 'autoinput')}-->
   
      <!--{elseif ($val['type'] == 'datetime')}-->
          <tr>
            <td><!--{$val['name']}--></td>
            <td><!--{$model[$key]}--></td>
          </tr>

      <!--{elseif ($val['type'] == 'textarea')}-->
     
      <!--{elseif ($val['type'] == 'tag')}-->
          <tr>
            <td><!--{$val['name']}--></td>
            <td ><!--{$model[$key]}--></td>
          </tr>
      <!--{elseif ($val['type'] == 'richtext')}-->
          <tr>
            <td colspan="2"><!--{$val['name']}--></td>
          </tr>
           <tr>
            <td ><!--{$model[$key]}--></td>
          </tr>
      <!--{elseif ($val['type'] == 'image')}-->
          <tr>
              <td><!--{$val['name']}--></td>
              <td>
                <img src="<!--{WEB_PATH}--><!--{$model[$key]}-->" width=""  />
               </td>
          </tr>
      <!--{elseif ($val['type'] == 'checkbox')}-->

              <tr>
                <td><!--{$val['name']}--></td>
                <td>
                  <!--{foreach ($model[$key] as $m)}-->
                      <!--{$checkbox_fields[$key][$m]}-->&nbsp;
                  <!--{/foreach}-->

                </td>
              </tr>
             
      <!--{/if}--> 
    <!--{/foreach}-->
</table>